negotiator
Class BidIterator

java.lang.Object
  extended by negotiator.BidIterator
All Implemented Interfaces:
java.util.Iterator<Bid>
Direct Known Subclasses:
LinearBidIterator

public class BidIterator
extends java.lang.Object
implements java.util.Iterator<Bid>

Class used to generate all bids in the domain. For issues with a continuous range discretization is used. If you want to search the set of generated bids efficiently, consider using SortedOutcomeSpace instead.

Author:
Dmytro, Wouter

Field Summary
protected  Domain fDomain
           
protected  boolean fInit
           
protected  int fNumberOfIssues
           
protected  int[] fValuesIndexes
           
 
Constructor Summary
BidIterator(Domain pDomain)
          Creates an iterator for the given outcomespace (domain).
 
Method Summary
 boolean hasNext()
           
 Bid next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fDomain

protected Domain fDomain

fNumberOfIssues

protected int fNumberOfIssues

fValuesIndexes

protected int[] fValuesIndexes

fInit

protected boolean fInit
Constructor Detail

BidIterator

public BidIterator(Domain pDomain)
Creates an iterator for the given outcomespace (domain).

Parameters:
pDomain - of which we want to generate all bids.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Bid>

next

public Bid next()
Specified by:
next in interface java.util.Iterator<Bid>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Bid>